﻿@model Think9.Models.UserEntity
@{ Layout = null; }
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>基本资料</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <script language="javascript" type="text/javascript" src="~/My97DatePicker/WdatePicker.js"></script>
</head>
<body>
    <style>
        .layui-form-item .layui-input-company {
            width: auto;
            padding-right: 10px;
            line-height: 38px;
        }
    </style>
    <form lay-filter="formUser">
        <div class="layuimini-container layuimini-page-anim">

        </div>
        <div class="layuimini-main">
            <div class="layui-form">
                <div class="layui-form-item">
                    <label class="layui-form-label">用户名</label>
                    <div class="layui-input-block">
                        <input type="text" name="Account" placeholder="用户名" autocomplete="off" disabled class="layui-input  layui-disabled" lay-verify="required" value="@Model.Account">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">性别</label>
                    <div class="layui-input-block">
                        <select id="Gender" name="Gender">
                            <option value="1">男</option>
                            <option value="0">女</option>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label  required">姓名</label>
                    <div class="layui-input-block">
                        <input type="text" name="RealName" placeholder="姓名" autocomplete="off" class="layui-input" lay-verify="required" maxlength="20" value="@Model.RealName">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">手机号码</label>
                    <div class="layui-input-block">
                        <input type="text" name="MobilePhone" placeholder="手机号码" autocomplete="off" class="layui-input" maxlength="11" value="@Model.MobilePhone">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">微信</label>
                    <div class="layui-input-block">
                        <input type="text" name="WeChat" placeholder="微信" autocomplete="off" class="layui-input" maxlength="30" value="@Model.WeChat">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">邮箱</label>
                    <div class="layui-input-block">
                        <input type="text" name="Email" placeholder="邮箱" autocomplete="off" class="layui-input" value="@Model.Email">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">出生日期</label>
                    <div class="layui-input-block">
                        <input type="text" name="Birthday" id="birthday" placeholder="出生日期" autocomplete="off" class="layui-input" onClick="WdatePicker({ el: this,dateFmt: 'yyyy-MM-dd'})" lay-verify='date' value="@Model.Birthday">
                    </div>
                </div>
                <div class="layui-form-item" style="text-align:center;">
                    <button class="layui-btn" lay-submit="" lay-filter="changeUser" disabled="disabled">立即修改</button>
                </div>
            </div>
        </div>
    </form>
    <script>
        layui.use(["form",  "layer"], function () {
            let layer = layui.layer;
            let form = layui.form;
            let $ = layui.$;

            form.render(); //更新全部


            //form.on("submit(changeUser)", function (data) {
            //    exUtils.ajax("/SysBasic/User/Edit", "post", data.field, true).done(function (response) {
            //        //exLayer.greenTickMsg(response.message, function () {
            //        //    location.reload(); // 父页面刷新
            //        //});
            //    }).fail(function (error) {
            //        console.log(error);
            //    });
            //    return false;
            //});
        });
    </script>
</body>
</html>